<template>

  <el-row :gutter="15">
    <el-col :span="12" >
      <el-upload
        class="upload-demo"
        drag
        action="https://jsonplaceholder.typicode.com/posts/"
        multiple>
        <i class="el-icon-upload"></i>
        <div class="el-upload__text" style="margin-top: -140px;">将文件拖到此处，或<em>点击上传</em></div>
        <div class="el-upload__tip" slot="tip" style="margin-top: -140px;">只能上传excel文件，且不超过500kb</div>
      </el-upload>
    </el-col>

    <!--      系统通知-->
    <el-col :span="12">
      <img src="@/assets/zhujiemian.jpg" style="width: 100%" />
    </el-col>
  </el-row>
</template>




<script>


export default {
  name: "predict",
  data() {
    return {
      userName:"",
      loginUser: {
        id: "",
        userName: "",
        passWord: "",
        name: "",
        gender: "",
        age: "",
        phone: "",
        address: "",
        type: 2,
        status: 1,
      },
      //系统通知
      notices:[],
    };
  },
  methods:{
    //获取个人资料
    getLoginUser(){
      const _self = this
      _self.$http.get("/api/userInfo/"+_self.userName)
        .then(function (resp) {
          // console.log(resp.data.data)
          _self.loginUser = resp.data.data
        })
    },
    //获取系统通知
    getNotices(){
      const _self = this
      _self.$http.get("/api/notices")
        .then(function (resp) {
          _self.notices = resp.data.data
        })
    }
  },
  // mounted() {
  //   this.userName = sessionStorage.getItem("username")
  //   //显示个人信息
  //   this.getLoginUser()
  //   //显示系统通知
  //   this.getNotices()
  //   }
};
</script>

<style>

</style>


